<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div id="dlg" class="easyui-dialog" title="添加、修改设备" style="width:570px;height:300px;"
       data-options="
       url:'',
       resizable:true,
       modal:true,
       closed:true,
       buttons:[{
			text:'保存',
			iconCls:'icon-ok',
			handler:function(){saveDialog()}
		},{
			text:'关闭',
			iconCls:'icon-cancel',
			handler:function(){closeDialog()}
		}]
 "> 
 <form id="fm" method="post">
 	<table cellspacing="5px;">
 		<input type="hidden" id="id" name="id"/>
 		<input type="hidden" id="dept_id" name="dept_id" />
 		<tr>
 			<td>设备名称：</td>
 			<td><input type="text" id="name" name="name" class="easyui-validatebox" required="true"/></td>
 			<td>设备类型：</td>
 			<td><input type="text" id="type" name="type" class="easyui-validatebox" required="true"/></td>
 		</tr>
 		<tr>
 			<td>检测单位名称：</td>
 			<td><input type="text" id="dept_name" name="dept_name" class="easyui-validatebox" required="true" readonly="readonly" /></td>
 			<td colspan="2"><a href="javascript:openDeptChooseDialog()" class="easyui-linkbutton" >选择部门</a></td>
 		</tr>
 		<tr>
 			<td>设备编号：</td>
 			<td><input type="text" id="dev_num" name="dev_num"  class="easyui-validatebox" data-options="required:true"/></td>
 			<td>证书编号：</td>
 			<td><input type="text" id="zheng_num" name="zheng_num"  class="easyui-validatebox" data-options="required:true"/></td>
 		</tr>
        <tr>
 			<td>证书有效期：</td>
 			<td><input id="time" name="time" class="easyui-datebox" data-options="required:true"></td>
 			<td>检定单位：</td>
 			<td><input type="text" id="jianding" name="jianding"  class="easyui-validatebox" data-options="required:true"/></td>
 			
 		</tr>
 	</table>
 </form>
</div>